package generator.model;

import generator.MyAnnotation;
import generator.util.BaseBean;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Date;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-7-30
 * Time: 下午9:50
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "t_student", catalog = "commonproject")
@MyAnnotation(comments = "学生管理")
public class Student extends BaseBean {
    @MyAnnotation(comments = "名称")
    private String name;

    @Override
    public Long getId() {
        return super.getId();    //To change body of overridden methods use File | Settings | File Templates.
    }

    @MyAnnotation(comments = "生日")
    private Date borthDate;
    @MyAnnotation(comments = "年龄")
    private Long age;
    @MyAnnotation(comments = "身高")
    private Double height;
    @MyAnnotation(comments = "所属班级",relation = "ManyToOne")
    private Clazz clazz;
}
